Repository navigation
feat(target): run the EESSI target through eb-local - #34
Merged
Merged
Conversation
The eessi target execs eb-local with EB_LOCAL_EESSI_EXTEND=1. scripts/eessi-extend-eb.sh is removed, and with it tests/eessi_extend_eb_script.rs, which ran the script, and its CI entry. eb-stack does not build eb-local; the container bind-mounts the binary the operator installed.
The Cargo prelude reads the host triple only when rustc -vV succeeds, but it opened that step with `_triple="";`. The semicolon ended the && chain, so when an earlier step of the prelude failed, EasyBuild's install command still ran. The step is now `_triple= && if ...; fi`, and the prelude stays one && chain. The doc comment says where the compat layer comes from: EESSI_EPREFIX, else EESSI_CVMFS_REPO and EESSI_VERSION, default 2026.06. A unit test runs the prelude under pipefail with a rustc that exits 127, once with EESSI_EPREFIX and once with only EESSI_CVMFS_REPO.
eb-local 2.4.0 has no extend mode. Asked for --version, it prints its own version and exits 0, so target doctor passed an EESSI target that cannot build: outside a Slurm job its builds stop with "not inside a Slurm job". When the target environment turns EB_LOCAL_EESSI_EXTEND on, read as eb-local reads it (set, not empty, not 0), the EasyBuild probe now also needs the "This is EasyBuild" line that only eb prints. Without it the check fails, and a new reason field says that eb-local before 2.5.0 has no extend mode. Other targets are judged by exit status alone, as before. reason is left out when there is none, so the JSON of a passing check is unchanged and a stored report without the field still reads.
The EESSI target needs eb-local 2.5.0 or later, the first release with EB_LOCAL_EESSI_EXTEND. The target reference and examples/targets/eessi-extend.toml now say so, and that 2.4.0 and older ignore the variable and answer --version themselves, which target doctor fails.
…eessi When none of the four install variables was set, the removed scripts/eessi-extend-eb.sh exported EESSI_USER_INSTALL=$HOME/EESSI and created it. eb-local exports nothing in that case, so EESSI-extend installs under its own default, $HOME/eessi. The removal entry now says so, and that setting EESSI_USER_INSTALL in the target environment keeps the old prefix.
The rebased #31, "fix(cargo): quote CC and LIBRARY_PATH in the EESSI prelude", on main.
The rebased #34, "feat(target): run the EESSI target through eb-local", on top of #31. The Cargo prelude in src/cargo.rs keeps both: #31's CC default, quoted LINKER, filtered triple and quoted eval, inside #34's chained triple read (`_triple= && if ...; fi &&`). The inline comment that cited scripts/eessi-extend-eb.sh goes, as in #34, which deletes that script and moves the best-effort note to the function's doc comment.
HaoZeke
force-pushed
the
fix/use-eb-local-eessi
branch
from
November 16, 2026 07:13
3d8bda3 to
9eb4ab0
Compare
HaoZeke
added a commit
that referenced
this pull request
Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #26 for the towncrier setup. Replaces #27.
The EESSI target runs
eb-localwithEB_LOCAL_EESSI_EXTEND=1, andscripts/eessi-extend-eb.shis removed.ebcommand. The container bind-mounts the eb-local binary the operator installed. A present emptyEESSI_*_INSTALLstill counts as that mode, whicheb-localenforces.public_eessi_extend_target_routes_through_eessi_containerloads the example target and checks the command iseb-local,EB_LOCAL_EESSI_EXTEND=1is set, andeessi-extend-eb.shis absent. The example target uses EESSI 2026.06 and namesEESSI_CVMFS_INSTALLamong the modes. The howto, target reference, skill and llms-full text match that. The commit has a towncrier fragment.